--Using PL/SQL htp package

htp.formOpen(	orc_url in varchar2,			
			orc_method in varchar2,
			orc_target in varchar2,		
			orc_enctype in varchar2,
			orc_attributes in varchar2);

--Figure 13.11(a)  htp formOpen Procedure



<FORM ACTION=orc_url METHOD=orc_method TARGET=orc_target ENCTYPE=orc_enctype orc_attributes>

--Figure 13.11(b) HTML Tag for formOpen Procedure



htp.formSelectOpen(name=Choose color)

htp.formSelectOption(value=red>Red
htp.formSelectOption(value=blue>Blue
htp.formSelectOption(value=green>Green

htp.formSelectClose

--Figure 13.11(c) Using htp to Create a Drop-down List in a Form
 


htp.formSubmit (
cname in varchar2 DEFAULT NULL,
cvalue in varchar2 DEFAULT Submit,
cattributes in varchar2 DEFAULT NULL);
htp.formClose;

--Figure 13.11(d) using htp formSubmit and formClose Procedures